home *** CD-ROM | disk | FTP | other *** search
/ MacHome 2001 January / MacHome Magazine Demo Disc January 2001.iso / mac / Software / Networking / InterMapper 3.0 - PPC.sea / InterMapper 3.0 - PPC / InterMapper™ 3.0-PPC / InterMapper™ 3.0-PPC.rsrc / PrTy_144_com.dartware.tcp.appleshareip < prev    next >
Encoding:
Text File  |  2000-07-24  |  1.4 KB  |  57 lines

  1. <!-- 
  2.     AppleShareIP (com.dartware.tcp.appleshareip)
  3.     Copyright © 2000 Dartware, LLC. All rights reserved.
  4. -->
  5.  
  6. <header>
  7.     type            =     "tcp-script"
  8.     package            =     "com.dartware"
  9.     probe_name        =    "tcp.appleshareip"
  10.     human_name        =    "AppleShareIP"
  11.     version            =     "1.1"
  12.     address_type    =     "IP"
  13.     port_number        =     "548"
  14.     
  15.     old_protocol    =     "8"            # Backward compat. with old numbering scheme.
  16.     old_script        =     "8010"
  17. </header>
  18.  
  19. <description>
  20.  
  21. ≤GB≥AppleShareIP≤P≥
  22.  
  23. The file-sharing protocol used by Apple computers over TCP/IP.  The default TCP port number for AppleShareIP connections is port 548.
  24.  
  25. This TCP probe connects to the AppleShareIP port and issues a "Get Server Info" request. The probe succeeds if the server returns a reply with no error.
  26.  
  27. This probe does not actually create an AppleShare session.
  28.  
  29. </description>
  30.  
  31. <parameters>
  32.  
  33. -- No Parameters
  34.  
  35. </parameters>
  36.  
  37. <script>
  38.  
  39. CONN #60 (connect timeout in secs)
  40. WAIT #30 @IDLE (idle timeout in secs)
  41. LINE OFF
  42. SEND "\x00\x03\x00\x00" -- flag=Request(00), cmd=DSIGetStatus(03), id=0
  43. SEND "\x00\x00\x00\x00" -- error code=0
  44. SEND "\x00\x00\x00\x00" -- total data length=0
  45. SEND "\x00\x00\x00\x00" -- reserved=0
  46. MTCH "\x01\x03\x00\x00\x00\x00\x00\x00" else goto @NO_MATCH
  47. EXPT "AFP"i else goto @NO_MATCH
  48. DONE OKAY
  49.  
  50. @NO_MATCH:
  51. DONE DOWN "[AppleShareIP] Unexpected response to FPGetSrvrInfo() from port ${_REMOTEPORT}."
  52.  
  53. @IDLE:
  54. DONE DOWN "[AppleShareIP] No data for ${_IDLETIMEOUT} seconds.  [Line ${_IDLELINE}]"
  55.  
  56. </script>
  57.